package the_tenth_chapter;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.OutputStream;

public class Test {

	public static void main(String[] args) {
		InputStreamReader is = null;
		BufferedReader br = null;
		OutputStream os = null;
		
		is = new InputStreamReader(System.in);
		br = new BufferedReader(is);
		
		try {
			String s  = null;
			while((s = br.readLine()) != null){
				System.out.println(s);
				s += s;
			}
			
		} catch (IOException e) {
			e.printStackTrace();
		}
	}
}
